<?php if($this->insert > 0):?>
<tr id="<?php echo  $this->subjectBlockModel->getBid() . '-' . $this->subjectBlockModel->getSid() ?>">
	<td><?php echo $this->subjectModel->name; ?></td>
	<td class="center">
					<a class="actionIcon deleteAction" href="#" onClick="javascript:$.post(
						'<?= $this->url(array(
							'controller' => 'block',
							'action' => 'remove-subject',
							'format' => 'html' 
						)
					) ?>',
					{
						bid: <?php echo $this->subjectBlockModel->getBid(); ?>,
						sid: <?php echo $this->subjectBlockModel->getSid(); ?>,						
					},
					function(result){						
						$('.message').html(result);						
						$('#<?php echo  $this->subjectBlockModel->getBid() . '-' . $this->subjectBlockModel->getSid() ?>').remove();
					});">Odstrániť</a>
	</td>
</tr>
<?php endif;?>